#include "header.h"
int main(int argc, char* argv[]){
	ARGS_CHECK(argc, 2);
	int fd = open(argv[1], O_RDWR);
	ERROR_CHECK(fd, -1, "open");

	char buf[1024] = {0};
	int cnt = read(fd, buf, sizeof(buf));

	printf("cnt = %d\n",cnt);
	puts(buf);

	//用完就关
	close(fd);
	
	return 0;
	return 0;
}